<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script type="module">
    import {student} from "./utils.js"
    const list = [
        {name:"name1",age:1,year:"2001-1-1"},
        {name:"name2",age:2,year:"2002-1-1"},
        {name:"name3",age:3,year:"2003-1-1"},
        {name:"name4",age:4,year:"2004-1-1"},
        {name:"name5",age:5,year:"2005-1-1"}
    ]
    const res = new Student(list);
    const sol = res.getdata("name2");
    console.log(sol);
</script>